<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加新任务</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/task.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/task/task.js"></script>
<script language="javascript" type="text/javascript"
	src="${pageContext.request.contextPath}/js/task/calendar.js">
	
</script>
<script type="text/javascript">
	$(function() {
		//刷新的时候把type设置为默认的直发类型
		$("#task_type").get(0).selectedIndex = 0;
		$("#renwu_zhifa").attr("action",
				"${pageContext.request.contextPath}/ZhifaServlet.do");
		
		$("#return_task_index").click(function(){
			window.location.href="/weibo/TaskManagerServlet.do";
		});
	});

	function checkandsubmit() {
		if ($("#agree").get(0).checked == true) {
			$("#renwu_zhifa").submit();
		} else {
			alert("你还没有同意！");
		}
	}
</script>
</head>
<body>
	<div class="maincontent">
		<div class="content">
			<%@include file="/common/header.jsp"%>
			<%@include file="/common/daohang.jsp"%>
			<div class="your_position">
				<span>当前位置：</span><span><a href="#this">博主资源</a></span><span><a
					href="#this">查看微博博主</a></span>
			</div>
			<div id="now_next_add">
				<ul id="now_next_add_">
					<li><span class="now_add">1.新添加任务</span></li>
					<li><span class="next_add">2.选择微博主</span></li>
					<li><span class="next_add">3.已选微博</span></li>
				</ul>
				<ul id="now_next_detail_right">
					<li><span><input type="button" value="返回任务管理首页" id="return_task_index"
							style="margin-top: 5px;"></span></li>
				</ul>
			</div>
			<div class="split_line"></div>
			<div style="clear: both;"></div>
			<div style="text-align: left; margin-left: 10px; margin-top: 20px;">
				<div class="text" style="margin-bottom: 5px;">
					<form name="renwu_zhifa" id="renwu_zhifa" method="post"
						enctype="multipart/form-data"
						action="${pageContext.request.contextPath}/ZhifaServlet.do">
						<table border="0" width="80%" class="add_straight_table">
							<tr>
								<td>投放平台：</td>
								<td colspan="4">
									<ul class="pingtai_ul">
										<li><input type="radio" name="pingtai" value="0"
											style="margin-top: 0px; padding-top: 0px;" checked="checked" />新浪微博</li>
										<li><input type="radio" name="pingtai" value="1"
											style="margin-top: 0px; padding-top: 0px;" />腾讯微博</li>
										<li><input type="radio" name="pingtai" value="2"
											style="margin-top: 0px; padding-top: 0px;" />美丽说</li>
										<li><input type="radio" name="pingtai" value="3"
											style="margin-top: 0px; padding-top: 0px;" />QQ空间</li>
									</ul>
								</td>
							</tr>
							<tr>
								<td>活动类型：</td>
								<td colspan="4" align="left"><select name="task_type"
									id="task_type" onchange="changetasktype(this);"
									style="display: block; width: 180px; margin-left: 15px;">
										<option value="0" selected="selected">直发</option>
										<option value="1">转发</option>
										<option value="2">分享</option>
								</select> <span
									style="margin-left: 15px; display: block; width: 200px; font-family: 微软雅黑; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; color: #A1A1A1;">直发：将内容直接发送到微博上
								</span></td>
							</tr>
							<tr>
								<td>内容类型：</td>
								<td colspan="4">
									<ul class="pingtai_ul">
										<li><input type="radio" name="content_type" value="0"
											style="margin-top: 0px; padding-top: 0px;" checked="checked" />软广</li>
										<li><input type="radio" name="content_type" value="1"
											style="margin-top: 0px; padding-top: 0px;" />硬广</li>
									</ul>
								</td>
							</tr>
							<tr>
								<td>任务名称：</td>
								<td colspan="4"><input type="text" name="taskname"
									id="taskname"
									style="margin-top: 0px; padding-top: 0px; margin-left: 15px;"
									size="60" /></td>
							</tr>
							<tr>
								<td>开始时间：</td>
								<td colspan="4"><input type="text" name="starttime"
									id="starttime" onclick="calendar.show(this);"
									style="margin-top: 0px; padding-top: 0px; margin-left: 15px; float: left;"
									size="20" /> <select name="hour"
									style="display: block; width: 100px; margin-left: 40px; float: left;">
										<option value="00">00时</option>
										<option value="01">01时</option>
										<option value="02">02时</option>
										<option value="03">03时</option>
										<option value="04">04时</option>
										<option value="05">05时</option>
										<option value="06">06时</option>
										<option value="07">07时</option>
										<option value="08">08时</option>
										<option value="09">09时</option>
										<option value="10">10时</option>
										<option value="11">11时</option>
										<option value="12">12时</option>
										<option value="13">13时</option>
										<option value="14">14时</option>
										<option value="15">15时</option>
										<option value="16">16时</option>
										<option value="17">17时</option>
										<option value="18">18时</option>
										<option value="19">19时</option>
										<option value="20">20时</option>
										<option value="21">21时</option>
										<option value="22">22时</option>
										<option value="23">23时</option>
								</select><select name="minute"
									style="display: block; width: 100px; margin-left: 40px; float: left;">
										<option value="00">00分</option>
										<option value="30">30分</option>
								</select></td>
							</tr>
							<tr class="zhuanfa_show">
								<td>转发链接：</td>
								<td colspan="4"><input type="text" name="forwardlink"
									id="forwardlink"
									style="margin-top: 0px; padding-top: 0px; margin-left: 15px;"
									size="60" /> <span
									style="margin-left: 15px; display: block; width: 200px; font-family: 微软雅黑; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; color: #A1A1A1;">什么是转发链接？
								</span></td>
							</tr>
							<tr class="fenxiang_show">
								<td>分享链接：</td>
								<td colspan="4"><input type="text" name="sharelink"
									id="sharelink"
									style="margin-top: 0px; padding-top: 0px; margin-left: 15px;"
									size="60" /> <span
									style="margin-left: 15px; display: block; width: 200px; font-family: 微软雅黑; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; color: #A1A1A1;">什么是转发链接？
								</span></td>
							</tr>
							<tr class="zhifa_show">
								<td>直发内容：</td>
								<td colspan="4"><textarea rows="8" cols="70"
										name="straightContent" id="straightContent"
										style="display: block; margin-left: 15px;"></textarea></td>
							</tr>
							<tr class="zhuanfa_show">
								<td>转发语：</td>
								<td colspan="4"><textarea rows="5" cols="70"
										name="zhuanfayu" id="zhuanfayu"
										style="display: block; margin-left: 15px;"></textarea></td>
							</tr>
							<tr class="zhifa_show">
								<td>直发图片：</td>
								<td align="left" colspan="4"><input type="file"
									name="liulan" id="liulan"
									style="display: block; margin-top: 0px; padding-top: 0px; width: 300px; margin-left: 15px;"
									value="浏览" /></td>
							</tr>
							<tr>
								<td>其他要求：</td>
								<td colspan="4"><textarea rows="5" cols="70"
										name="otherContent" id="otherContent"
										style="display: block; margin-left: 15px;"></textarea></td>
							</tr>
							<tr>
								<td colspan="5">
									<div style="width: 100%;">
										<ul id="straight_zhichi">
											<li><div>
													<span>是否需要策略支持： </span> <span><input type="radio"
														name="celue" style="margin-top: 0px; padding-top: 0px;"
														checked="checked" value="0" />是 </span> <span><input
														type="radio" name="celue"
														style="margin-top: 0px; padding-top: 0px;" value="1" />否
													</span>
												</div></li>
											<li><div class="zhifa_show">
													<span style="margin-left: 5px">方案是否需要加急： </span> <span><input
														type="radio" name="jiaji"
														style="margin-top: 0px; padding-top: 0px;" value="0"
														checked="checked" />是 </span> <span><input type="radio"
														name="jiaji" style="margin-top: 0px; padding-top: 0px;"
														value="1" />否 </span>
												</div></li>
											<li><div class="zhifa_show">
													<span style="margin-left: 5px">请指定方案提交时间： </span> <span><input
														type="text" name="fangantime" onclick="calendar.show(this);"
														style="margin-top: 0px; padding-top: 0px;" size="17" /> </span>
													
													
												</div></li>
										</ul>
									</div>
								</td>
							</tr>
							<tr class="zhifa_show">
								<td>&nbsp;</td>
								<td colspan="4">
									<div style="text-align: left; padding-left: 15px;">
										<table width="87%" class="kehu_table">
											<tr>
												<td width="15%">客户名称：</td>
												<td width="25%">水生夜总会</td>
												<td width="15%">所属行业：</td>
												<td width="45%">休闲娱乐</td>
											</tr>
											<tr>
												<td width="15%">官网地址：</td>
												<td width="25%">www.xxoo.com</td>
												<td width="15%">方案类型：</td>
												<td width="45%"><span><input type="radio"
														checked="checked" name="fangantype" value="0"
														style="margin-top: 0px; padding-top: 0px;" />口碑传播策略 </span> <span><input
														type="radio" name="fangantype" value="0"
														style="margin-top: 0px; padding-top: 0px;" />文案 </span></td>
											</tr>
											<tr>
												<td width="15%">背景描述：</td>
												<td width="25%">周年庆典打折促销</td>
												<td width="15%">品牌定位：</td>
												<td width="45%">大众型娱乐场所，低消费档次</td>
											</tr>
											<tr>
												<td width="15%">企业口号：</td>
												<td width="25%">你想上哪就上哪</td>
												<td width="15%">风格调性：</td>
												<td width="45%">三俗，魅惑</td>
											</tr>
											<tr>
												<td width="15%">受众人群：</td>
												<td width="25%">民工，农业及畜牧业者</td>
												<td width="15%">竞品品牌：</td>
												<td width="45%">各类胡同洗头房，洗脚房</td>
											</tr>
											<tr>
												<td width="15%">效果预期：</td>
												<td width="25%">&nbsp;</td>
												<td width="15%">预算金额：</td>
												<td width="45%">3000元</td>
											</tr>
										</table>
									</div>
								</td>
							</tr>
							<tr class="zhifa_show">
								<td>&nbsp;</td>
								<td colspan="4">
									<div style="color: red; text-align: left; padding-left: 15px;"
										class="text">
										• 若指定的方案撰写周期少于4个工作日则视为加急项目，我方将酌情收取策略费。<br /> •
										口碑传播策略类加急项目按每篇800元收费，加急文案类项目每篇300元。<br /> •
										非加急项目，我方将于10作日内向您免费提供。<br />
									</div>
								</td>
							</tr>
							<tr>
								<td colspan="5">
									<div>
										<ul id="straight_zhichi">
											<li style="padding-top: 4px;"><div>
													<span>上传正品证明： </span>
												</div></li>
											<li><span> <input type="button" name="liulan"
													id="liulan"
													style="display: block; margin-top: 0px; padding-top: 0px; width: 100px;"
													value="浏览" />
											</span></li>
											<li><div>
													<span><input type="button" name="liulan" id="liulan"
														style="display: block; margin-top: 0px; padding-top: 0px; width: 100px;"
														value="使用历史证明" /> </span>
												</div></li>
										</ul>
									</div>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td colspan="4">
									<div style="color: red; text-align: left; padding-left: 15px;"
										class="text">
										• 若您推广的单品属于知名品牌，请务必上传该商品的正品证明，否则活动会被取消<br /> •
										仅支持jpg、gif、png图片文件，文件小于5M，且允许上传5张<br />
									</div>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td colspan="4">
									<div style="text-align: left; padding-left: 15px;" class="text">
										<input type="checkbox" value="checkbox" checked="checked"
											id="agree" />同意<span style="color: #0066FF">微博世界服务条款</span>
									</div>
								</td>
							</tr>
							<tr>
								<td colspan="5" align="center"><input type="button"
									onclick="javascript:checkandsubmit();" value="下一步" class="text"
									style="display: block; margin-top: 0px; padding-top: 0px; width: 100px;" />
								</td>
							</tr>
						</table>

						<div style="clear: both;"></div>
					</form>
				</div>
			</div>
			<%@include file="/common/footer.jsp"%>
		</div>
	</div>
</body>
</html>